package com.xzgj.fmmall.service;

import com.xzgj.fmmall.entity.ProductSku;
import com.xzgj.fmmall.vo.ResultVO;

import java.util.List;

public interface ProductService {

    public ResultVO selectAllProducts();

    public ResultVO selectRecommendProducts(int productId);

    public ResultVO selectLatestRecommendProducts();

    public ResultVO selectTopProductsOnSoldNumEveryCategory(int rootCategoryId);

    /*
    根据id查询商品基本信息；根据商品id查询当前商品的图片；根据商品id查询当前商品的套餐
     --->三个查询都是单表查询，都可以通过tkMapper实现，因此sql不再写，直接业务层service
    */
    public ResultVO getProductsBasicInfo(String productId);

    /**
     * 商品参数，跟商品相关，所以也写在这里
     * @param productId
     * @return
     */
    public ResultVO getProductsParamsByProductId(String productId);

    public ResultVO getProductsByCategoryId(int categoryId,int pageNo,int pageSize);

    public ResultVO listBrands(int categoryId);

    public ResultVO searchProducts(String keyword,int pageNo,int pageSize);

    public ResultVO listBrands(String keyword);

    public ResultVO selectLowestPriceByProductId(String productId);

}
